<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: JCStorageItem类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_j_c_storage_item-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCStorageItem类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html">文件存储模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_j_c_storage_item_8h_source.html">JCStorageItem.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a53dbebe226cd2f6759fd6ade61ad907f"><td class="memItemLeft" align="right" valign="top">virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a53dbebe226cd2f6759fd6ade61ad907f">getFileId</a> ()=0</td></tr>
<tr class="separator:a53dbebe226cd2f6759fd6ade61ad907f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf8fa1f0a4da97e0bbf081285f50405e"><td class="memItemLeft" align="right" valign="top">virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#abf8fa1f0a4da97e0bbf081285f50405e">getUri</a> ()=0</td></tr>
<tr class="separator:abf8fa1f0a4da97e0bbf081285f50405e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a709a6dc1eecc8ddc580f68bbb955eb47"><td class="memItemLeft" align="right" valign="top">virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a709a6dc1eecc8ddc580f68bbb955eb47">getPath</a> ()=0</td></tr>
<tr class="separator:a709a6dc1eecc8ddc580f68bbb955eb47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a299db9056b61f16d40b57b5695aea0e3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga80e1fc3ad6bab9b6c16d79e8a912206f">JCStorageItemDirection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a299db9056b61f16d40b57b5695aea0e3">getDirection</a> ()=0</td></tr>
<tr class="separator:a299db9056b61f16d40b57b5695aea0e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf7af782ce6d1c1e45a2b615f78e92ef"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#gac1e9ac690b4849a765d831a5c478ddc1">JCStorageItemState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#aaf7af782ce6d1c1e45a2b615f78e92ef">getState</a> ()=0</td></tr>
<tr class="separator:aaf7af782ce6d1c1e45a2b615f78e92ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a273ca35739ff84cb9ba21d471daedd42"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga40b7218f59d12deb9962cc0fdd036ff2">JCStorageReason</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a273ca35739ff84cb9ba21d471daedd42">getReason</a> ()=0</td></tr>
<tr class="separator:a273ca35739ff84cb9ba21d471daedd42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97fba7fd92592266af89c0640740af03"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a97fba7fd92592266af89c0640740af03">getProgress</a> ()=0</td></tr>
<tr class="separator:a97fba7fd92592266af89c0640740af03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fbde6f291ecb5703bbfd6a87fddc409"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a7fbde6f291ecb5703bbfd6a87fddc409">getFileSize</a> ()=0</td></tr>
<tr class="separator:a7fbde6f291ecb5703bbfd6a87fddc409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75bc132613601eeeee384ce914febaea"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a75bc132613601eeeee384ce914febaea">getCookie</a> ()=0</td></tr>
<tr class="separator:a75bc132613601eeeee384ce914febaea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f763047ecb59194fe23d5ecbff201e6"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_storage_item.html#a5f763047ecb59194fe23d5ecbff201e6">getOperationId</a> ()=0</td></tr>
<tr class="separator:a5f763047ecb59194fe23d5ecbff201e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文件传输对象 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a75bc132613601eeeee384ce914febaea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75bc132613601eeeee384ce914febaea">&#9670;&nbsp;</a></span>getCookie()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long JCStorageItem::getCookie </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取cookie</p>
<dl class="section return"><dt>返回</dt><dd>cookie </dd></dl>

</div>
</div>
<a id="a299db9056b61f16d40b57b5695aea0e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a299db9056b61f16d40b57b5695aea0e3">&#9670;&nbsp;</a></span>getDirection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga80e1fc3ad6bab9b6c16d79e8a912206f">JCStorageItemDirection</a> JCStorageItem::getDirection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取上传还是下载</p>
<dl class="section return"><dt>返回</dt><dd>文件传输方向：<ul>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#gga80e1fc3ad6bab9b6c16d79e8a912206faca288ae0245b773bf30d2928dfc9fc38">JCStorageItemDirectionUpload</a> : 上传</li>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#gga80e1fc3ad6bab9b6c16d79e8a912206fa9576356c693836c7e572f6e3eac94bb1">JCStorageItemDirectionDownload</a> : 下载 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a53dbebe226cd2f6759fd6ade61ad907f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53dbebe226cd2f6759fd6ade61ad907f">&#9670;&nbsp;</a></span>getFileId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* JCStorageItem::getFileId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件唯一标识符</p>
<dl class="section return"><dt>返回</dt><dd>文件唯一标识符 </dd></dl>

</div>
</div>
<a id="a7fbde6f291ecb5703bbfd6a87fddc409"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fbde6f291ecb5703bbfd6a87fddc409">&#9670;&nbsp;</a></span>getFileSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCStorageItem::getFileSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件大小</p>
<dl class="section return"><dt>返回</dt><dd>文件大小 </dd></dl>

</div>
</div>
<a id="a5f763047ecb59194fe23d5ecbff201e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f763047ecb59194fe23d5ecbff201e6">&#9670;&nbsp;</a></span>getOperationId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCStorageItem::getOperationId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取操作id</p>
<dl class="section return"><dt>返回</dt><dd>操作id </dd></dl>

</div>
</div>
<a id="a709a6dc1eecc8ddc580f68bbb955eb47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a709a6dc1eecc8ddc580f68bbb955eb47">&#9670;&nbsp;</a></span>getPath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* JCStorageItem::getPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件本地路径</p>
<dl class="section note"><dt>注解</dt><dd>发送时为发送文件路径，接收时为文件下载保存路径</dd></dl>
<dl class="section return"><dt>返回</dt><dd>文件本地路径 </dd></dl>

</div>
</div>
<a id="a97fba7fd92592266af89c0640740af03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97fba7fd92592266af89c0640740af03">&#9670;&nbsp;</a></span>getProgress()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCStorageItem::getProgress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件传输进度</p>
<dl class="section return"><dt>返回</dt><dd>文件传输进度 </dd></dl>

</div>
</div>
<a id="a273ca35739ff84cb9ba21d471daedd42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a273ca35739ff84cb9ba21d471daedd42">&#9670;&nbsp;</a></span>getReason()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga40b7218f59d12deb9962cc0fdd036ff2">JCStorageReason</a> JCStorageItem::getReason </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件传输失败的原因</p>
<dl class="section return"><dt>返回</dt><dd>原因值，当文件状态为 <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1a18fb75843dbb6b6050cc1e027bf097d8">JCStorageItemStateFail</a> 时有效。参见 <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga40b7218f59d12deb9962cc0fdd036ff2">文件传输失败原因</a> </dd></dl>

</div>
</div>
<a id="aaf7af782ce6d1c1e45a2b615f78e92ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf7af782ce6d1c1e45a2b615f78e92ef">&#9670;&nbsp;</a></span>getState()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#gac1e9ac690b4849a765d831a5c478ddc1">JCStorageItemState</a> JCStorageItem::getState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取传输状态</p>
<dl class="section return"><dt>返回</dt><dd>传输状态：<ul>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1a0d3d80899dded540996f9dd5e33143d5">JCStorageItemStateInit</a> : 文件初始状态</li>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1a1e4cee4fa71de637f714312b9db206ea">JCStorageItemStateTransfering</a> : 文件传输中状态</li>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1ab336ed63358e3a9ed7bb19476a72ac6b">JCStorageItemStateOK</a> : 文件传输成功状态</li>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1a18fb75843dbb6b6050cc1e027bf097d8">JCStorageItemStateFail</a> : 文件传输失败状态</li>
<li><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ggac1e9ac690b4849a765d831a5c478ddc1a8caa013656fa3eab1b148d9bc84298c3">JCStorageItemStateCancel</a> : 文件传输取消状态 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="abf8fa1f0a4da97e0bbf081285f50405e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf8fa1f0a4da97e0bbf081285f50405e">&#9670;&nbsp;</a></span>getUri()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* JCStorageItem::getUri </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件链接</p>
<dl class="section note"><dt>注解</dt><dd>上传文件可获得</dd></dl>
<dl class="section return"><dt>返回</dt><dd>文件链接 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>SDK/all/include/<a class="el" href="_j_c_storage_item_8h_source.html">JCStorageItem.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
